import fetch from '../request.js'

/**
	
	 * 请求数据处理
	 * @param String url 请求地址
	 * @param String method 请求方式 GET or POST
	 * @param {*} postData 请求参数
	 * @param Boolean isForm 数据格式
	 *  true: 'application/x-www-form-urlencoded'
	 *  false:'application/json'
	 * @param Boolean isDelay 是否延迟显示loading
	 * @param Boolean hideLoading 是否隐藏loading
	 *  true: 隐藏
	 *  false:显示
	 * 
	request(url, method, postData, isForm, isDelay, hideLoading) 
*/

// 报价列表
export function biddingLists(params) {
	return fetch.request("/pekingFish/app/saleBiddingDetail/getBiddingDetailPage/pageList", "GET",params, true, false, false)
}

// 报价详情
export function biddingDetail(params) {
	return fetch.request("/pekingFish/app/saleBiddingDetail/getBiddingDetailDetails/"+params, "GET",'', true, false, false)
}

//报价
export function biddingQuotePrice(params) {
	return fetch.request("/pekingFish/app/saleBiddingDetail/quotePrice", "POST",params, true, false, false)
}

// 取消报价
export function cancleBiddingQuote(params) {
	return fetch.request("/pekingFish/app/saleBiddingDetail/cancleQuote/"+params, "POST",'', true, false, false)
}